package cn.tedu.csmall.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * SKU（Stock Keeping Unit）
 *
 * @TableName pms_sku
 */
@Data
@Accessors(chain = true)
@TableName("pms_sku")
public class Sku implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long spuId;


    private String title;


    private String barCode;


    private Long attributeTemplateId;


    private String specifications;


    private Long albumId;


    private String pictures;


    private BigDecimal price;


    private Integer stock;


    private Integer stockThreshold;


    private Integer sales;


    private Integer commentCount;


    private Integer positiveCommentCount;


    private Integer sort;


    private LocalDateTime gmtCreate;


    private LocalDateTime gmtModified;


}